-- GENERATED SPELL FOR [Blindlight Muckdweller] --


function spell0_4819(pUnit, Event) --@Leech Poison,Drain--
pUnit:FullCastSpellOnTarget(8382,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_4819', 45000, 1)
end

function Sorts_4819(pUnit, Event)
local choix_sorts_4819 = math.random(0, 0)
if choix_sorts_4819 == 0 then
pUnit:RegisterEvent('spell0_4819', 1, 1)
end
end

function mob4819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4819', math.random(1500, 3000), 1)
end

function mob4819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4819, 1, 'mob4819_Action')
RegisterUnitEvent(4819, 2, 'mob4819_Leave')
RegisterUnitEvent(4819, 3, 'mob4819_Kill')
RegisterUnitEvent(4819, 4, 'mob4819_Die')
